﻿using Abp.Application.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LeiliTech.@(Model.ConfigInfo.ModelFolderName).Dto;

namespace LeiliTech.@(Model.ConfigInfo.ModelFolderName)
{
    public interface I@(Model.ConfigInfo.EntityName)AppService : IApplicationService
    {
        /// <summary>
        /// 获取实体信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        @(Model.ConfigInfo.EntityName)Dto GetEntity(string id);

        /// <summary>
        /// 分页获取信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        ResultSet<@(Model.ConfigInfo.EntityName)Dto> QueryPage(@(Model.ConfigInfo.EntityName)Input input);

        /// <summary>
        /// 保存数据
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        string SaveEntity(@(Model.ConfigInfo.EntityName)Dto input);

        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        int DeleteEntity(List<string> ids);
    }
}
